package me.qingy.core.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import me.qingy.core.service.UserService;
import me.qingy.core.entity.User;
import me.qingy.core.mapper.UserMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户信息表 服务实现类
 * </p>
 *
 * @author qingy
 * @since 2021-04-21
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
    @Override
    public User selectUserByUserName(String username) {
        return this.getOne(new QueryWrapper<User>().eq("login_name", username));
    }
}
